#include <iostream>
#include "FileReader.hpp"
#include "FileReaderProxy.hpp"

using namespace std;

int main(int argc, char const *argv[])
{
    Reader *fileReader = new FileReader();
    fileReader->loadFile("ProxyMode.txt");
    fileReader->outputContent();
    delete fileReader;
    cout << "使用代理模式读取文件：" << endl;
    Reader *fileReaderProxy = new FileReaderProxy();
    fileReaderProxy->loadFile("ProxyMode.txt");
    fileReaderProxy->outputContent();
    delete fileReaderProxy;
    return 0;
}
